package com.dxy.yesas2020goals.study.partone.disignpattern.reposibilitypattern.simple;

/**
 * @author victorydeng
 * @Classname SimpleTest
 * @Description TODO
 * @Date 2020/5/13 10:19
 * @Created by victorydeng
 */
public class SimpleTest {
    public static void main(String[] args) {
        Handler loginHandler = new LoginHandler();
        Handler validateHandler = new ValidateHandler();
        Handler authHandler = new AuthHandler();
        loginHandler.setNext(validateHandler);
        validateHandler.setNext(authHandler);
        loginHandler.doHandler(new Member("dxy","666","管理员"));
    }
}
